I have a layout dxl column using the diff function to show deltas. When I export it to Word (Word 2007--either as an export to RTF or Word), the color associated with strikeouts and new text does not show up in the export. When someone else exports the colors are exported but not consistently. Are RTF colors supposed to carry over from the layout DXL into MS Word? |
Re: Exporting Layout DXL to Word http://www.ibm.com/developerworks/forums/click.jspa?searchID=-1&messageID=14469370 or http://www.ibm.com/developerworks/forums/click.jspa?searchID=-1&messageID=14643303 Regards, Mathias Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS |
Re: Exporting Layout DXL to Word
You will need to have a solid understanding of the RTF standard and RTF control words as to why this isn't working.
Sub AddColor()
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = ""
.Font.StrikeThrough = True
.Replacement.Text = ""
.Replacement.Font.StrikeThrough = True
.Replacement.Font.Color = wdColorRed
.Forward = True
.Wrap = wdFindContinue
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = ""
.Font.Underline = wdUnderlineSingle
.Replacement.Text = ""
.Replacement.Font.Underline = wdUnderlineSingle
.Replacement.Font.Color = wdColorBlue
.Forward = True
.Wrap = wdFindContinue
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
With ActiveDocument.PageSetup
.Orientation = wdOrientLandscape
.PageWidth = InchesToPoints(17)
.PageHeight = InchesToPoints(11)
End With
End Sub
Paul Miller
|
Thanks Paul and Mathias! Mathias: I went through the other threads and it seems the setRichWithColour function is for building an exporter? We just want to use the standard Word Exporter or RTF Exporter. Is that not an option then? Thanks again for the great info! Pete |